Using Set-UserPhoto returns "No photo with class 'IPM.UserPhoto.Preview' exists."

Hello,

I'm trying to upload high res photo of our employees with the commands below.
But after the 'save' command the following error is shown:
No photo with class 'IPM.UserPhoto.Preview' exists.;
+ CategoryInfo          : NotSpecified: (:) [Set-UserPhoto], ObjectNotFoundException

Afterwards when checking the picture over EWS with the GetUserPhoto command, the image is working fine though.
I couldn't find anything related to this error on the web. We're using Exchange 2013 CU3.
Just wanted to check if we can just ignore this error and run the commands for all our users.

$photo = ([Byte[]] $(Get-Content -Path $picturePath -Encoding Byte -ReadCount 0))
Set-UserPhoto -Identity $UserIdentity -PictureData $photo -Confirm:False
Set-UserPhoto -Identity $UserIdentity -Save -Confirm:False

December 16th, 2013 9:57am

Hi,

Uploading the photo does not equate to assigning that photo to Ken Myer's user account. Instead, uploading the photo simply results in a preview of that photo to be displayed on the Outlook Web App Options page. To actually assign that photo to the user account the user must click Save on the Options page or the administrator must execute the third command in the example. That third command uses the Save parameter to assign the photo to Ken Myer's user account:

Set-UserPhoto -Identity "Ken Myer" -Save -Confirm:False

Refer from:

http://technet.microsoft.com/en-us/library/jj688150.aspx

Thanks,

Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnsfl@microsoft.com

Free Windows Admin Tool Kit Click here and download it now
December 17th, 2013 3:27am

Hi Simon,

Yes, we are using the third save command. After this command the error in my first post is shown.

December 17th, 2013 9:29am

Validated the error is present in 2013 CU3 and yet the photo is assigned and works as expected. My assumption is that the third 'save' command provided in the TechNet reference is no longer valid with CU3.
Free Windows Admin Tool Kit Click here and download it now
December 17th, 2013 1:38pm

so, the "save" command is not needed after CU3 ??
August 28th, 2015 5:07am

so, the "save" command is not needed after CU3 ??
  • Edited by PeterFaber Friday, August 28, 2015 9:06 AM
Free Windows Admin Tool Kit Click here and download it now
August 28th, 2015 9:06am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics